/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package apus.persistence;

import apus.entity.Account;
import apus.entity.Period;
import apus.entity.Subscriber;
import java.util.List;


/**
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @since APUS v0.2
 */
public interface AccountDAO extends AbstractDAO <Account> {
    List<Account> readBySubscriber(Integer id);
    Account readBySubscriberAndPeriod(Subscriber subscriber, Period period);
    void calculatePrice(Integer id);
    void calculateAllPrices();
    List<Account> findBySubscriber(String parameter);
    int addMonthlyAccounts();
    void payAccount(Integer id);
}
